#ifndef RRCOMPONENT_H
#define RRCOMPONENT_H

#include "rrprim.h"
#include <map>
#include "rrcuboid.h"
#include "rrplane.h"
#include "rrquadric.h"

using namespace std;

class RRComponent
{
protected:
    map<int, RRPrim*> primset;
    int map_index;
    RRMaterial material;

public:
    RRComponent();
    void rrSetPrim(RRPrim *arg);
    void rrSetMaterial(RRMaterial *arg);
    void rrTrace(RRRay *ray, RRCrossInfo *arg);
};

#endif // RRCOMPONENT_H
